-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(core): merge all package test reports #6261
base: master
Are you sure you want to change the base?
Conversation
Problem: - CI test reporting only captures the last package's results - Running `npm run testE2E` only preserves toolkit's report.xml, losing other package results Solution: - Generate individual report.xml files per subproject - Consolidate all existing package reports into root .test-reports/report.xml
/runIntegrationTests |
|
/runIntegrationTests |
What are the tradeoffs for merging the report versus having one per extension? Curious because for code coverage we have separate ones. |
If you don't merge them you can't see them in the ui here: https://d1ihu6zq92vp9p.cloudfront.net/487310e6-ebfc-4fef-a0b1-b441147b3c23/report.html. That's really the issue i'm trying to solve. It's pretty annoying when an amazon q test fails and then you have to manually look through the logs to find the problem I don't think that restriction applies to codecov since you can upload multiple different reports at the same time |
/runIntegrationTests |
e312707
to
924b90e
Compare
/runIntegrationTests |
@@ -37,7 +37,7 @@ phases: | |||
commands: | |||
- export HOME=/home/codebuild-user | |||
# Ignore failure until throttling issues are fixed. | |||
- xvfb-run npm run testE2E | |||
- xvfb-run npm run testE2E; PREVIOUS_TEST_EXIT_CODE=$? npm run mergeReports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can avoid this env var by passing the exit code directly as an arg
- xvfb-run npm run testE2E; PREVIOUS_TEST_EXIT_CODE=$? npm run mergeReports | |
- xvfb-run npm run testE2E; npm run mergeReports -- "$?" |
package.ts shows how to get script args:
aws-toolkit-vscode/scripts/package.ts
Lines 40 to 42 in 5b5df85
const givenArgs = process.argv.slice(2) | |
const validOptions = ['--debug', '--no-clean', '--feature'] | |
const expectValue = ['--feature'] |
Problem
npm run testE2E
only preserves toolkit's report.xml, losing other package resultsSolution
feature/x
branches will not be squash-merged at release time.License: I confirm that my contribution is made under the terms of the Apache 2.0 license.